﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="AddComment.ascx.cs" Inherits="NCS.Module.CMS.Web.HomePage.AddComment" %>
<%@ Register Assembly="WebControlCaptcha" Namespace="WebControlCaptcha" TagPrefix="cc1" %>
<asp:Panel ID="panel_form" runat="server" Width="100%" CssClass="boxcomment">

    <div class="boxcomment_sub1">
        <div class="text_ykien">
            Ý kiến của bạn</div>
        <div style="padding:20px;">
            <asp:ValidationSummary ID="ValidationSummary1" runat="server" />
        </div>
        
        <table width="80%" align="center" border="0px" style="border-collapse:collapse;">
            <tr>
                <td class="commentfieldlabel">Họ tên</td>
                <td>
                    <asp:TextBox ID="txt_name" runat="server" CssClass="textfield_comment" TextMode="SingleLine" Width="90%"></asp:TextBox>
                    <asp:RequiredFieldValidator runat="server" ID="requirefield1" ControlToValidate="txt_name" Text="*" ErrorMessage="Bạn cần nhập tên"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="commentfieldlabel">Địa chỉ email</td>
                <td>
                    <asp:TextBox ID="txt_email" runat="server" CssClass="textfield_comment" TextMode="SingleLine" Width="90%"></asp:TextBox>
                    <asp:RegularExpressionValidator ID="revEmail" runat="server" ControlToValidate="txt_email"
                        Display="Dynamic" ErrorMessage="Địa chỉ Email không hợp lệ" ValidationExpression="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*">*</asp:RegularExpressionValidator>
                    <asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator1" ControlToValidate="txt_email" Text="*" ErrorMessage="Bạn cần nhập Email"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="commentfieldlabel">Tiêu đề</td>
                <td>
                    <asp:TextBox ID="txt_address" runat="server" CssClass="textfield_comment" Width="90%"></asp:TextBox>
                    <asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator2" ControlToValidate="txt_address" Text="*" ErrorMessage="Bạn cần nhập tiêu đề"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="commentfieldlabel">Nội dung</td>
                <td>
                    <asp:TextBox ID="txt_comment" MaxLength="1000" runat="server" CssClass="textfield_comment" Rows="8" TextMode="MultiLine" Width="90%"></asp:TextBox>
                    <asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator3" ControlToValidate="txt_comment" Text="*" ErrorMessage="Bạn cần nhập nội dung"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="commentfieldlabel"></td>
                <td>
                    <cc1:captchacontrol id="CaptchaControl1" runat="server"></cc1:captchacontrol>
                </td>
            </tr>
            <tr>
                <td class="commentfieldlabel"></td>
                <td>
                    <asp:Button ID="but_comment" runat="server" OnClick="but_comment_Click" Text="Gửi đi" />
                    <input class="button_submit" type="reset" value="Soạn lại" />
                </td>
            </tr>
        </table>
        <div style="clear: both">
        </div>
    </div>
</asp:Panel>
<asp:Label ID="Label1" runat="server" ForeColor="#0000ff" Visible="False">Xin chân thành cảm ơn ý kiến của bạn.</asp:Label>
